package cn.jzq.mysoul.yourname.domain;

import cn.jzq.mysoul.yourname.base.SuperEntity;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author jzq
 * @since 2017-09-28
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_user")
public class SysUser extends SuperEntity<SysUser> {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户昵称
	 */
	private String username;
	/**
	 * 邮箱|登录帐号
	 */
	private String email;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 创建时间
	 */
	@TableField("create_time")
	private String createTime;
	/**
	 * 最后登录时间
	 */
	@TableField("last_login_time")
	private String lastLoginTime;
	/**
	 * 1:有效，0:禁止登录
	 */
	private Long status;


}
